using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Globalization;
using System.Linq;
using SH.Foundation;

namespace SH.Model
{
    //[NotifyPropertyChanged]
    [MetadataType(typeof(IStorehause))]
    [Table("Storehauses", Schema = "Storehause")]
    public class Storehause : ValidationModel, IStorehause
    {
        public int Id { get; set; }

        public int Edrpou { get; set; }
        
        public string Name { get; set; }

        public string Email { get; set; }
            
        public int? Phone { get; set; }

        public int Capacity { get; set; }

        public string Director { get; set; }

        public string ChifAccountant { get; set; }

        #region ForeginKeys

        public List<Certificate> Certificates { get; set; }

        public Region Region { get; set; }

        #endregion

    }
}
